package org.forfun.mmorpg.game.ai.fsm;

import org.forfun.mmorpg.game.scene.actor.Creature;

public interface State {

	/**
	 * 切换至新状态
	 * 
	 * @param creature
	 */
	void onEnter(Creature creature);

	/**
	 * 离开当前状态
	 * 
	 * @param creature
	 */
	void onExit(Creature creature);

	/**
	 * 每一个tick跑的业务
	 * 
	 * @param creature
	 */
	void execute(Creature creature);

}
